<template>
    <div>
         <!--导航-->
        <div class="rotation-tab1">
            <ul>
                <li v-for="(item,index) in tablist" :key="index" @click="torouter(item.to)">{{item.name}}
                    <span class="iconfont icon-xiangshang" v-if="index==3"></span>
                </li>
                
            </ul>
        </div>
        <div class="about">
           <!--<img src="../assets/img/0FB.png" alt="">-->
           <div>关于MAXSOO</div>
        </div>
        <div class="conent">
            <div>
                <div>客户</div>
                <div>
                    <div v-for="(item,index) in 8" :key="index">
                        <img src="../assets/img/V9CNS.png" alt="">
                    </div>
                </div>
            </div>
            <div>
                <div>出版社</div>
                <div>
                    <div v-for="(item,index) in 8" :key="index">
                        <img src="../assets/img/V9CNS.png" alt="">
                    </div>
                </div>
            </div>
        </div>
        <div class="totop">
            <div @click="totop">
                <span class="iconfont icon-shang1"></span>
                <div>回到顶部</div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            tablist:[
            {
                name:'首页',
                to: '/'
            },
            {
                name:'MAXSOO线上旗舰店',
                to: '/flagshipstore'
            },
            {
                name:'关于我们',
                to: '/about'
            },
            {
                name:'合作伙伴',
                to: '/partners'
            },
            {
                name:'SHOWROOM',
                to: '/showroom'
            }],
        }
    },
    methods: {
        torouter(page) {
            this.$router.push({
                path: page
            })
        },
        totop() {
            var timer = setInterval(()=>{
                document.documentElement.scrollTop = document.documentElement.scrollTop-50
                if(document.documentElement.scrollTop==0){
                    clearInterval(timer); 
                }
            },50)
        }
    },
}
</script>

<style lang="scss">
.rotation-tab1 {
    width: 100%;
    >ul {
        overflow: hidden;
        width: 640px;
        position: absolute;
        top: 78px;
        left: 50%;
        margin-left: -320px;
        z-index: 4;
        >li {
            float: left;
            font-size: 14px;
            color: #fff;
            line-height: 40px;
            margin: 0 25px;
            cursor: pointer;
            position: relative;
            >span {
                font-size: 14px;
                position: absolute;
                bottom: -16px;
                left: 50%;
                margin-left: -7px;
            }
        }
    }
}
.about {
    width: 100%;
    height: 501px;
    background: #ccc;
    position: relative;
    >img {
        width: 100%;
        height: 100%;
    }
    >div {
        width: 398px;
        height: 162px;
        color: #fff;
        left: 521px;
        background-color: rgba(145, 145, 145, 1);
        font-size: 48px;
        line-height: 162px;
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -200px;
    }
}
.conent {
    >div {
        width: 1143px;
        padding-top: 55px;
        >div:nth-child(1) {
            font-size: 16px;
            color: #101010;
            padding-bottom: 14px;
            border-bottom: 1px solid #bbb;
        }
        >div:nth-child(2) {
            overflow: hidden;
            padding: 30px 0;
            >div {
                border: 4px solid #F4F4F4;
                float: left;
                margin: 10px;
                >img {
                    width: 161px;
                    height: 94px;
                }
            }
        }
    }
}
.totop {
    padding-bottom: 50px;
    >div {
        text-align: center;
        width: 64px;
        cursor: pointer;
        >span {
            font-size: 28px;
        }
        >div {
            font-size: 16px;
        }
    }
}
</style>